define(['angular', 'angularRoute'], function(angular) {
  console.log(angular);

  const todoApp = angular.module('todoApp', ['ngRoute']).config(['$routeProvider',
    function config($routeProvider) {
      $routeProvider.
        when('/home', {
          templateUrl: './views/todoList.view.html',
          controller: 'todoController'
        }).
        when('/archived', {
          templateUrl: './views/archivedList.view.html',
          controller: 'archivedController'
        }).
        otherwise('/home');
    }
  ]);

  return todoApp;
});
